home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / convert < prev    next >
Text File  |  2001-03-21  |  781b  |  24 lines

  1. Synopsis:
  2.    $convert(<ip address|hostname>)
  3.  
  4. Technical:
  5.    This function does a DNS lookup on the given address.  For an IP address,
  6.    it attempts to find the corresponding Internet hostname.  For a hostname,
  7.    it attempts to find the corresponding IP address.
  8.  
  9. Practical:
  10.    This function does effectively the same thing as $iptoname() and
  11.    $nametoip().  It is mostly useful when you want to convert an address,
  12.    but you aren't sure if the input will be an IP address or not.
  13.  
  14. Returns:
  15.    IP address or hostname corresponding to input, or nothing on error
  16.  
  17. Examples:
  18.    $convert(some.school.edu)       returns IP address for "some.school.edu"
  19.    $convert(192.168.1.1)           returns hostname for "192.168.1.1"
  20.  
  21. See Also:
  22.    iptoname(6); nametoip(6)
  23.  
  24.